package com.titanrise.crm.mapper;

import com.titanrise.crm.domain.model.Product;
import com.titanrise.crm.environment.annotation.Mapper;
import com.titanrise.crm.environment.annotation.Param;
import com.titanrise.crm.environment.annotation.ResultType;
import com.titanrise.crm.environment.annotation.Select;

import java.util.List;

/**
 * @Description:
 * @Author: pront
 * @Time:2024-11-25 21:30
 */
@Mapper
public interface CustomerMapper {

    @Select("select * from tb_product")
    @ResultType(Product.class)
    List<Product> selectAll();

    @Select("select * from tb_product where id=#{id}")
    @ResultType(Product.class)
    Product selectByIdProduct(@Param("id") String id);
}
